<?php

namespace App\Models\SystemManagement;

use App\Models\Constant\Fields;
use Illuminate\Database\Eloquent\Model;

class UserRole extends Model
{
    protected $table = 'user_roles';
    protected $guarded = [];
    protected $hidden = ['created_at','updated_at'];

    public function role(){
        return $this->belongsTo(Role::class,Fields::ROLE_ID,Fields::ID)->select('id','name');
    }
}
